<%@ page import="java.util.ArrayList" %>
<%@ page import="com.yzr.entity.Student" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<%--将10个学生的信息输入到表格中--%>
<%

    List<Student> students = new ArrayList<>();
    for (int i = 1; i <= 10; i++) {
        students.add(new Student("姓名" + i, "18843034123", i));
    }
    System.out.println(students);

%>
<table>
    <%for (Student student : students) {%>
    <tr>
        <td><%=student.getName()%>
        </td>
        <td><%=student.getPhone()%>
        </td>
        <td><%=student.getAge()%>
        </td>
        <td>删除、修改</td>
    </tr>
    <%}%>
</table>

</body>
</html>
